package com.accenture.portal.dao.questionnaire.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.accenture.portal.dao.questionnaire.OptionMapper;
import com.accenture.portal.model.questionnaire.Option;

@Repository
public class OptionMapperImpl implements OptionMapper{
	
	@Autowired
	OptionMapper optionMapper;

	@Override
	public Option getOptionById(Integer optionId) {
		return optionMapper.getOptionById(optionId);
	}

	@Override
	public List<Option> getOptionByQuestion(Integer questionId) {
		return optionMapper.getOptionByQuestion(questionId);
	}

	@Override
	public void addOption(Option option) {
		optionMapper.addOption(option);
	}

	@Override
	public void deleteOption(Integer optionId) {
		optionMapper.deleteOption(optionId);
	}

	@Override
	public void editOption(Option option) {
		optionMapper.editOption(option);
	}

	@Override
	public void deleteOptionByQuestion(Integer optionQuestion) {
		optionMapper.deleteOptionByQuestion(optionQuestion);
	}

}
